package Test;

import static org.junit.jupiter.api.Assertions.*;

import java.util.Collection;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;

import org.junit.jupiter.api.Test;

import cn.swunet.schat.service.PacketSender;

class ThreadTest {

	@Test
	void test() {
		ExecutorService ThreadPoor = Executors.newFixedThreadPool(4);
//		for (int i = 1; i <= 100; i++) {
//			SendWorker worker = new SendWorker(i);
//			ThreadPoor.execute(worker);
//		}
//		
//		ThreadPoor.shutdown();
//		
//		while (!ThreadPoor.isTerminated()) {
//			
//		}
	}

}
